package com.ujoku.dao.impl;

import com.labillusion.core.database.base.mybatis.dao.impl.BaseDaoImpl;
import com.ujoku.dao.MessageDao;
import com.ujoku.domain.Message;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * Created by Administrator on 14-10-25.
 */
@Repository
public class MessageDaoImpl extends BaseDaoImpl<Message> implements MessageDao<Message> {

    @Override
    public int updateByToMemberId(int toMemberID){

        return sqlSessionTemplate.update(getSqlName("updateByToMemberId"), toMemberID);
    }

    @Override
    public int updateOne(Map<String,Object> query){
        return sqlSessionTemplate.update(getSqlName("updateOne"),query);
    }
}
